package dotdashdot.bradz.trendsettr;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.widget.EditText;

public class ClassAlerts {
	private Context context;
	private String title, message;
	private EditText text_box;
	ClassAlerts(Context context, String title, String message, EditText text_box){
		this.context = context;
		this.title = title;
		this.message = message;
		this.text_box = text_box;
	}
	public void set_title(String title){
		this.title = title;
	}
	public void set_message(String message){
		this.message = message;
	}
	public void show_message(final boolean erase_text){
		new AlertDialog.Builder(context)
        .setTitle(title)
        .setMessage(message)
        .setPositiveButton("Contiue", new DialogInterface.OnClickListener() {
            public void onClick(DialogInterface dialog, int which) { 
            	if(erase_text){
            		text_box.setText("");
            	}
            }
         })
         .show();
	}

}
